<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>投保方案</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />
<!-- 添加到桌面快捷方式小图标 -->
<link rel="apple-touch-icon-precomposed" href="#">
<!-- 指定快捷方式标题 -->
<meta name="apple-mobile-web-app-title" content="志惠科技">
<link rel="stylesheet" href="${ctx}/css/reset.css">
<link rel="stylesheet" href="${ctx}/css/auto_insurance.css">
<script type="text/javascript" src="${ctx}/js/jquery-1.9.1.min.js" ></script>
<script type="text/javascript" src="${ctx}/js/auto_insurance.js" ></script>
<script type="text/javascript">
	function clickk(){
		var changeType = $("#changeType").val();
		var modelCode = $("#modelCode").val();
		var responseBodyId = $("#responseBodyId").val();
		var url = "jsons?changeType="+changeType+"&responseBodyId="+responseBodyId+"&modelCode="+responseBodyId;
		
		//主险
		var Aem1 = $("#Aem1").hasClass("choice_yes");
		var Bem1 = $("#Bem1").hasClass("choice_yes");
		var Cem1 = $("#Fem1").hasClass("choice_yes");
		var Gem1 = $("#Gem1").hasClass("choice_yes");
		var D11em1 = $("#D11em1").hasClass("choice_yes");
		var D12em1 = $("#D12em1").hasClass("choice_yes");
		var Zem1 = $("#Zem1").hasClass("choice_yes");
		var X1em1 = $("#X1em1").hasClass("choice_yes");
		var Lem1 = $("#Lem1").hasClass("choice_yes");
		
		//不计赔险
		var AAlittle_i1 = $("#AAlittle_i1").hasClass("choice_yes_little");
		var ABlittle_i1 = $("#ABlittle_i1").hasClass("choice_yes_little");
		var AGlittle_i1 = $("#AGlittle_i1").hasClass("choice_yes_little");
		var AD11little_i1 = $("#AD11little_i1").hasClass("choice_yes_little");
		var AD12little_i1 = $("#AD12little_i1").hasClass("choice_yes_little");
		var AZlittle_i1 = $("#AZlittle_i1").hasClass("choice_yes_little");
		var AX1little_i1 = $("#AX1little_i1").hasClass("choice_yes_little");
		
		//lable
		var Blabel1 = $("#Blabel1").html();
		var Flabel1 = $("#Flabel1").html();
		var Llabel1 = $("#Llabel1").html();
		
		//text
		var D11text1 = $("#D11text1").val();
		var D12text1 = $("#D12text1").val();
		
		
		//判断，拼接URL
		if(Flabel1 == '国产'){
			Flabel1 = '1';
		}else{
			Flabel1 = '2';
		}
		//机动车损失保险
		if(Aem1){
			url = url + "&Aem1=A";
			if(!AAlittle_i1) {
				url += "&AAlittle_i1=AA";
			}
		}
		//第三者责任险
		if(Bem1){
			url = url + "&Bem1=B&Blabel1=" + Blabel1;
			if(!ABlittle_i1) {
				url += "&ABlittle_i1=AB";
			}
		}
		//玻璃单独破碎险
		if(Fem1){
			if(!Aem1){
				return false;
			}
		  	url = url + "&Fem1=F&Flabel1=" + Flabel1;
		}
		//盗抢险
		if(Gem1){
			url = url + "&Gem1=G";
			if(!AGlittle_i1) {
				url += "&AGlittle_i1=AG";
			}
		}
		//车身划痕险
		if(Lem1){
			url = url + "&Lem1=L&Llabel1=" + Llabel1;
		}
		//自燃损失险
		if(Zem1){
			url = url + "&Zem1=Z";
			if(!AZlittle_i1) {
				url += "&AZlittle_i1=AZ";
			}
		}
		//发动机特别损失险
		if(X1em1){
			url = url + "&X1em1=X1";
			if(!AX1little_i1) {
				url += "&AX1little_i1=AX1";
			}
		}
		//车上人员责任险-驾驶员
		if(D11em1){
			url = url + "&D11em1=D11&D11text1=" + D11text1;
			if(!AD11little_i1) {
				url += "&AD11little_i1=AD11";
			}
		}
		//车上人员责任险-乘客
		if(D12em1){
			url = url + "&D12em1=D12&D12text1=" + D12text1;
			if(!AD12little_i1) {
				url += "&AD12little_i1=AD12";
			}
		}
		var shangye1;
		var jiaoqiang1;
		//交强险
		if(changeType == '1'){
			shangye1 = $("#shangye1").hasClass("choice_yes");
			jiaoqiang1 = $("#jiaoqiang1").hasClass("choice_yes");
			if(jiaoqiang1){
			  url = url + "&jiaoqiang1=BZ";
			}else{
				$("#BZi2").html("");
			}
		}
		if(changeType == '2'){
			shangye1 = $("#shangye2").hasClass("choice_yes");
			jiaoqiang1 = $("#jiaoqiang2").hasClass("choice_yes");
			if(jiaoqiang1){
			  url = url + "&jiaoqiang2=BZ";
			}else{
				$("#BZi2").html("");
			}
		}
		if(changeType == '3'){
			shangye1= $("#shangye3").hasClass("choice_yes");
			jiaoqiang1= $("#jiaoqiang3").hasClass("choice_yes");
			if(jiaoqiang1){
			  url = url + "&jiaoqiang3=BZ";
			}else{
				$("#BZi2").html("");
			}
		}
		var parm = {
				"car_user_phone":$('#car_user_phone').val(),
		};
		alert(url);
		$(".lazy_zhezhaoceng, .lazy_top").show(); 
		$.ajax({
			url: url,
			data: parm,
			success: function(data) {
				if(data != "1") {
					$("#precisequoteId").val(data.uuid != null ? data.uuid : "");
					$("#sumpremium").html(data.paytax != null ? "共计"+data.paytax+"元" : "共计0元");
					for(var i = 0; i < data.codelist.length; i++) {
						$("#"+ data.codelist[i].kindCode + "i1").html(data.codelist[i].policy_sum);
						$("#"+ data.codelist[i].kindflagCode + "ii1").html(data.codelist[i].kindflagSum);
					}
					$(".lazy_zhezhaoceng, .lazy_top").hide();
				}else {
					$(".lazy_zhezhaoceng, .lazy_top").hide();
// 					alertmsg(data);
				}
			}
			
		});	
	}
	//切换大类
	function submit(v){
		
		var modelCode =$("#modelCode").val();
		var car_responsebody_id =$("#responseBodyId").val();
		var changeType=v;
		if($("#jinji").hasClass("current_title")){
			window.location.href="${ctx}/show?car_responsebody_id="+car_responsebody_id+"&modelCode="+modelCode+"&changeType="+changeType;
		}
		if($("#dazong").hasClass("current_title")){
			window.location.href="${ctx}/show?car_responsebody_id="+car_responsebody_id+"&modelCode="+modelCode+"&changeType="+changeType;
		}
		if($("#haohua").hasClass("current_title")){
			window.location.href="${ctx}/show?car_responsebody_id="+car_responsebody_id+"&modelCode="+modelCode+"&changeType="+changeType;
		}
	
	}
</script>
<style>
	.insurance_scheme_title>li {width: 33.3%;}
</style>
</head>
<body class="body_bg">
	<ul class="insurance_scheme_title  clearfix">
		<c:if test="${changeType eq 0 }">${changeType}
			<li id="jinji" class="current_title" onclick="submit('1');">经济版</li>
			<li id="dazong" onclick="submit('2');">大众版</li>
			<li id="haohua" onclick="submit('3');">豪华版</li>
		</c:if>
		<c:if test="${changeType eq 1}">
			<li id="jinji" onclick="submit('1');">经济版</li>
			<li id="dazong" class="current_title"  onclick="submit('2');">大众版</li>
			<li id="haohua" onclick="submit('3');">豪华版</li>
		</c:if>
		<c:if test="${changeType  eq 2}">
			<li id="jinji" onclick="submit('1');">经济版</li>
			<li id="dazong" onclick="submit('2');">大众版</li>
			<li id="haohua" class="current_title"  onclick="submit('3');">豪华版</li>
		</c:if>
	<!--<li>自定义</li>-->
	</ul>
	<div id="fix" class="index_top_fix" style="display: none;"></div>
	<!--经济版内容开始-->
	<div class="tab_content">
			<input type="hidden" id="precisequoteId" name="precisequoteId"  value="${uuid}"/>
			<input type="hidden" id="changeType" name=changeType  value="${changeType}"/>
			<input type="hidden" id="modelCode" name="modelCode"  value="${modelCode}"/>
			<input type="hidden" id="responseBodyId" name="responseBodyId"  value="${responseBodyId}"/>
		<div class="insurance_scheme_container">
			<h1 class="all_choice clearfix">
				<em id="shangye1" class="choice_yes"></em>商业险
				<cite>?</cite>
				<span class="fr insurance_open effective_date"><i></i></span>
			</h1>
			<ul class="click_choice">
				<c:forEach items="${list}" var="list">
					<c:if test="${list.changeType =='1'}">
						<c:if test="${list.typeCode =='1'}">
							<c:choose>
								<c:when test="${list.type =='1'}">
									<li class="clearfix">
										<em id="${list.kindCode}em1" class="choice_yes" ></em>${list.kindName}
										<cite>?</cite>
										<input type="text" value="${list.kindSum}" class="change_input" id="${list.kindCode}text1" onchange="clickk(this.value);" />
										<i id="${list.kindCode}i1" class="fr">${list.policy_sum}</i>
										<c:if test="${not empty list.kindflagName}">
											<div class="div_p clearfix">
												<i id="${list.kindflagCode}little_i1" class="choice_yes_little"></i>${list.kindName}${list.kindflagName}
												<cite>?</cite>
												<i id="${list.kindflagCode}ii1" class="fr">${list.kindflagSum}</i>
											</div>
										</c:if>
									</li>
								</c:when>
								<c:when test="${list.type =='2'}">
									<li class="clearfix">
										<em id="${list.kindCode}em1" class="choice_yes"></em>${list.kindName}
										<cite>?</cite>
										<div class="insurance_scheme_select cursor_pointer">
											<c:forEach items="${list.mnu}" var="mnu" varStatus="var">
												<c:if test="${var.index ==0}">
													<label id="${list.kindCode}label1" >${mnu}</label>
													<ul class="insurance_select_list select_list">
												</c:if>
												<li >${mnu}</li>
											</c:forEach>
													</ul>
										</div>
										<i id="${list.kindCode}i1" class="fr">${list.policy_sum}</i>
										<c:if test="${not empty list.kindflagName}">
											<div class="div_p clearfix">
												<i id="${list.kindflagCode}little_i1" class="choice_yes_little"></i>${list.kindName}${list.kindflagName}
												<cite>?</cite>
												<i id="${list.kindflagCode}ii1" class="fr">${list.kindflagSum}</i>
											</div>
										</c:if>
									</li>
								</c:when>
								<c:when test="${list.type =='3'}">
									<li class="clearfix">
										<em id="${list.kindCode}em1" class="choice_yes"></em>${list.kindName}
										<cite>?</cite>
										<input type="text" id="${list.kindCode}text1" disabled="disabled" value="${list.kindSum}" class="change_input"/>
										<i id="${list.kindCode}i1" class="fr">${list.policy_sum}</i>
										<c:if test="${not empty list.kindflagName}">
											<div class="div_p clearfix">
												<i id="${list.kindflagCode}little_i1" class="choice_yes_little"></i>${list.kindName}${list.kindflagName}
												<cite>?</cite>
												<i id="${list.kindflagCode}ii1" class="fr">${list.kindflagSum}</i></div>
										</c:if>
									</li>
								</c:when>
							</c:choose>
						</c:if>
					</c:if>
				</c:forEach>
			</ul>
		</div>
		<div class="insurance_scheme_container">
			<h1 class="all_choice clearfix">
				<em id="jiaoqiang1" class="choice_yes"></em>交强险
				<cite>?</cite>
				<span class="fr insurance_open effective_date"><i></i></span>
			</h1>
			<p>*浮动比例与道路交通安全违法行为和道路交通事故相联系</p>
			<c:forEach items="${list}" var="list">
				<c:if test="${list.changeType =='1'}">
					<c:if test="${list.typeCode =='2'}">
						<div class="jqx_ccs">${list.kindName}
							<cite>?</cite>
							<i id="${list.kindCode}i2" class="fr">${list.policy_sum}</i>
						</div>
					</c:if>
				</c:if>
			</c:forEach>
		</div>
		<div class="insurance_scheme_container">
			<h1 class="all_choice clearfix">
				<em id="chequan1" class="choice_yes"></em>代收车船税
				<cite>?</cite>
				<span class="fr insurance_open effective_date"><i></i></span>
			</h1>
	</div>
	<!--经济版内容结束-->
	<!--大众版内容开始-->
	<div class="tab_content">
		<div class="insurance_scheme_container">
			<h1 class="all_choice clearfix">
				<em id="shangye2"  class="choice_yes"></em>商业险
				<cite>?</cite>
				<i class="fr effective_date"></i>
			</h1>
			<ul class="click_choice">
				<c:forEach items="${list}" var="list">
					<c:if test="${list.changeType =='2'}">
						<c:if test="${list.typeCode =='1'}">
							<c:choose>
								<c:when test="${list.type =='1'}">
									<li class="clearfix">
										<em id="${list.kindCode}em1" class="choice_yes"></em>${list.kindName}
										<cite>?</cite>
										<input type="text" id="${list.kindCode}text1"  value="${list.kindSum}" onchange="clickk(this.value);" class="change_input"/>
										<i id="${list.kindCode}i1" class="fr">${list.policy_sum}</i>
										<c:if test="${not empty list.kindflagName}">
											<div class="div_p clearfix">
												<i id="${list.kindflagCode}little_i1" class="choice_yes_little"></i>${list.kindName}${list.kindflagName}
												<cite>?</cite>
												<i id="${list.kindflagCode}ii1" class="fr">${list.kindflagSum}</i>
											</div>
										</c:if>
									</li>
								</c:when>
								<c:when test="${list.type =='2'}">
									<li class="clearfix">
										<em id="${list.kindCode}em1"  class="choice_yes"></em>${list.kindName}
										<cite>?</cite>
										<div class="insurance_scheme_select cursor_pointer">
											<c:forEach items="${list.mnu}" var="mnu" varStatus="var">
												<c:if test="${var.index ==0}">
													<label id="${list.kindCode}label1">${mnu}</label>
													<ul  class="insurance_select_list select_list">
												</c:if>
												<c:if test="${var.index !=0}">
													<li>${mnu}</li>
												</c:if>
											</c:forEach>
													</ul>
										</div>
										<i id="${list.kindCode}i1" class="fr">${list.policy_sum}</i>
										<c:if test="${not empty list.kindflagName}">
												<div class="div_p clearfix">
													<i id="${list.kindflagCode}little_i1" class="choice_yes_little"></i>${list.kindName}${list.kindflagName}
													<cite>?</cite>
													<i id="${list.kindflagCode}ii1" class="fr">${list.kindflagSum}</i>
												</div>
										</c:if>
									</li>
								</c:when>
								<c:when test="${list.type =='3'}">
									<li class="clearfix">
										<em id="${list.kindCode}em1" class="choice_yes"></em>${list.kindName}
										<cite>?</cite>
										<input type="text" disabled="disabled" id="${list.kindCode}text1" value="${list.kindSum}" class="change_input"/>
										<i id="${list.kindCode}i1" class="fr">${list.policy_sum}</i>
										<c:if test="${not empty list.kindflagName}">
											<div class="div_p clearfix">
												<i id="${list.kindflagCode}little_i1" class="choice_yes_little"></i>${list.kindName}${list.kindflagName}
												<cite>?</cite>
												<i id="${list.kindflagCode}ii1" class="fr">${list.kindflagSum}</i>
											</div>
										</c:if>
									</li>
								</c:when>
							</c:choose>
						</c:if>
					</c:if>
				</c:forEach>
			</ul>
		</div>
		<div class="insurance_scheme_container">
			<h1 class="all_choice clearfix">
				<em id="jiaoqiang2" class="choice_yes"></em>交强险+车船税
				<cite>?</cite>
				<span class="fr insurance_open effective_date"><i></i></span>
			</h1>
			<p>*浮动比例与道路交通安全违法行为和道路交通事故相联系</p>
			<c:forEach items="${list}" var="list">
				<c:if test="${list.changeType =='2'}">
					<c:if test="${list.typeCode =='2'}">
						<div class="jqx_ccs">${list.kindName}
							<cite>?</cite>
							<i id="${list.kindCode}i2" class="fr">${list.policy_sum}</i>
						</div>
					</c:if>
				</c:if>
			</c:forEach>
		</div>
	</div>
	</div>
	<!--大众版内容结束-->
	<!--豪华版内容开始-->
	<div class="tab_content">
		<div class="insurance_scheme_container">
			<h1 class="all_choice clearfix">
				<em id="shangye3"  class="choice_yes"></em>商业险
				<cite>?</cite>
				<i class="fr effective_date"></i>
			</h1>
			<ul class="click_choice">
				<c:forEach items="${list}" var="list">
					<c:if test="${list.changeType =='3'}">
						<c:if test="${list.typeCode =='1'}">
							<c:choose>
								<c:when test="${list.type =='1'}">
									<li class="clearfix">
										<em id="${list.kindCode}em1" class="choice_yes"></em>${list.kindName}
										<cite>?</cite>
										<input type="text" id="${list.kindCode}text1" value="${list.kindSum}" onchange="clickk(this.value);" class="change_input"/>
										<i id="${list.kindCode}i1" class="fr">${list.policy_sum}</i>
										<c:if test="${not empty list.kindflagName}">
											<div class="div_p clearfix">
												<i id="${list.kindflagCode}little_i1" class="choice_yes_little"></i>${list.kindName}${list.kindflagName}
												<cite>?</cite>
												<i id="${list.kindflagCode}ii1" class="fr">${list.kindflagSum}</i>
											</div>
										</c:if>
									</li>
								</c:when>
								<c:when test="${list.type =='2'}">
									<li class="clearfix">
										<em id="${list.kindCode}em1" class="choice_yes"></em>${list.kindName}
										<cite>?</cite>
										<div class="insurance_scheme_select cursor_pointer">
											<c:forEach items="${list.mnu}" var="mnu" varStatus="var">
												<c:if test="${var.index ==0}">
													<label id="${list.kindCode}label1" >${mnu}</label>
													<ul  class="insurance_select_list select_list">
												</c:if>
												<c:if test="${var.index !=0}">
													<li>${mnu}</li>
												</c:if>
											</c:forEach>
													</ul>
										</div>
										<i id="${list.kindCode}i1" class="fr">${list.policy_sum}</i>
										<c:if test="${not empty list.kindflagName}">
											<div class="div_p clearfix">
												<i id="${list.kindflagCode}little_i1" class="choice_yes_little"></i>${list.kindName}${list.kindflagName}
												<cite>?</cite>
												<i id="${list.kindflagCode}ii1" class="fr">${list.kindflagSum}</i>
											</div>
										</c:if>
									</li>
								</c:when>
								<c:when test="${list.type =='3'}">
									<li class="clearfix"><em id="${list.kindCode}em1" class="choice_yes"></em>${list.kindName}
										<cite>?</cite>
										<input type="text" id="${list.kindCode}text1" disabled="disabled" value="${list.kindSum}" class="change_input"/>
										<i id="${list.kindCode}i1" class="fr">${list.policy_sum}</i>
										<c:if test="${not empty list.kindflagName}">
											<div class="div_p clearfix">
												<i id="${list.kindflagCode}little_i1" class="choice_yes_little"></i>${list.kindName}${list.kindflagName}
												<cite>?</cite>
												<i id="${list.kindflagCode}ii1" class="fr">${list.kindflagSum}</i>
											</div>
										</c:if>
									</li>
								</c:when>
							</c:choose>
						</c:if>
					</c:if>
				</c:forEach>
			</ul>
		</div>
		<div class="insurance_scheme_container">
			<h1 class="all_choice clearfix">
				<em id="jiaoqiang3" class="choice_yes"></em>交强险+车船税
				<cite>?</cite>
				<span class="fr insurance_open effective_date"><i></i></span>
			</h1>
			<p>*浮动比例与道路交通安全违法行为和道路交通事故相联系</p>
			<c:forEach items="${list}" var="list">
				<c:if test="${list.changeType =='3'}">
					<c:if test="${list.typeCode =='2'}">
						<div class="jqx_ccs">${list.kindName}
							<cite>?</cite>
							<i id="${list.kindCode}i2" class="fr">${list.policy_sum}</i>
						</div>
					</c:if>
				</c:if>
			</c:forEach>
		</div>
	</div>
	<!--豪华版内容结束-->
<!--	自定义内容开始-->
<!--	<div class="tab_content">-->
<!--		<div class="insurance_scheme_container">-->
<!--			<h1 class="all_choice clearfix"><em class="choice_yes"></em>商业险<cite>?</cite><i class="fr">生效日期  2015-07-26</i></h1>-->
<!--			<ul class="click_choice">-->
<!--				<li class="clearfix"><em class="choice_yes"></em>车辆车损险<cite>?</cite><input type="text" value="21205.00" class="change_input"/><i class="fr">￥21205.00</i>-->
<!--					<div class="div_p clearfix"><i class="choice_yes_little"></i>车险不计免赔<cite>?</cite>-->
<!--						<i class="fr">￥21205.00</i></div>-->
<!--				</li>-->
<!--				<li class="clearfix"><em class="choice_yes"></em>司机座位险<cite>?</cite><input type="text" value="21205.00"/>-->
<!--					<i class="fr">￥21205.00</i>-->
<!--					<div class="div_p clearfix"><i class="choice_yes_little"></i>司机座位险不计免赔<cite>?</cite>-->
<!--						<i class="fr">计算中...</i></div>-->
<!--				</li>-->
<!--				<li><em class="choice_no"></em>全车盗抢险<cite>?</cite></li>-->
<!--				<li><em class="choice_no"></em>玻璃破碎险<cite>?</cite></li>-->
<!--				<li><em class="choice_no"></em>涉水险<cite>?</cite></li>-->
<!--				<li><em class="choice_no"></em>划痕险<cite>?</cite></li>-->
<!--			</ul>-->
<!--		</div>-->
<!--		<div class="insurance_scheme_container">-->
<!--			<h1 class="all_choice clearfix"><em class="choice_yes"></em>交强险+车船税<cite>?</cite><span class="fr insurance_open">生效日期  2015-07-27&nbsp;&nbsp;<i></i></span></h1>-->
<!--			<ul class="insurance_scheme_jqx">-->
<!--				<li>死亡伤残<cite>?</cite><i class="fr">￥21205.00</i></li>-->
<!--				<li>无责死亡伤残<cite>?</cite><i class="fr">￥21205.00</i></li>-->
<!--				<li>医疗费用<cite>?</cite><i class="fr">￥21205.00</i></li>-->
<!--				<li>无责医疗费用<cite>?</cite><i class="fr">￥21205.00</i></li>-->
<!--				<li>财产损失<cite>?</cite><i class="fr">￥21205.00</i></li>-->
<!--				<li>无责财产损失<cite>?</cite><i class="fr">￥21205.00</i></li>-->
<!--				<li>浮动比例<cite>?</cite><i class="fr">￥21205.00</i></li>-->
<!--			</ul>-->
<!--			<p>*浮动比例与道路交通安全违法行为和道路交通事故相联系</p>-->
<!--			<div class="jqx_ccs">交强险+车船税<cite>?</cite><i class="fr">￥21205.00</i></div>-->
<!--		</div>-->
<!--	</div>-->
<!--	自定义内容结束-->
  	<!--按钮开始-->
	<ul class="plan_bot_nav clearfix">
		<li><a id="sumpremium" href="#">共计${sumpremium}元</a></li>
		<li>
			<%-- <a href="${ctx}/cover?precisequoteId=${uuid}&insuredName=${insuredName}&responseBodyId=${responseBodyId}">我要投保</a> --%>
			<a href="${ctx}/writeInfo">我要投保</a>
		</li>
	</ul>
  	<!--按钮结束-->
	<!--弹层开始-->
	<div class="lazy_zhezhaoceng" style="display: none;"></div>
	<div class="lazy_top" style="display: none;">
		<ul class="clearfix">
			<li class="dot1"></li>
			<li class="dot2"></li>
			<li class="dot3"></li>
			<li class="dot4"></li>
			<li class="dot5"></li>
		</ul>
		<em>报价中，请稍等……</em>
	</div>
	<!--弹层结束-->
</body>
<script>
$(function() {
	effectiveDate();
});
//生效日期
function effectiveDate() {
	var date = new Date();
	date.setDate(date.getDate()+1);
	var year = date.getFullYear();
	var month = date.getMonth() + 1;
	var day = date.getDate();
	var currentDate = year + "-";
	if(month >= 10) {
		currentDate += month + "-";
	}else {
		currentDate += "0" + month + "-";
	}
	if(day >= 10) {
		currentDate += day;
	}else {
		currentDate += "0" + day;
	}
	$("i.effective_date").prepend("生效日期&nbsp;" + currentDate);
	$("span.effective_date").prepend("生效日期&nbsp;" + currentDate + "&nbsp;&nbsp;");
}
</script>
</html>